package com._23DesignPattern._create.Singleton;

/**
 * @Author: huangya
 * @Date: 2018/10/19
 * @Description: 饿汉
 */
public class SingletonDemo1 {

    private static SingletonDemo1 singletonDemo1 = new SingletonDemo1();

    private SingletonDemo1(){

    }

    public static SingletonDemo1 getInstance(){
        return singletonDemo1;
    }





}
